# try finally
import sys
import time

f = None
try:
    f = open("notexsits.txt")
    while True:
        line = f.readline()
        if len(line) == 0:
            break
        print(line, end='')
except IOError:
    print("io error")
except KeyboardInterrupt:
    print("key xxx")
finally:
    if f:
        f.close()
    print("finally do")
